// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue';
import App from './App';
import router from './router';
import axios from 'axios';
import VueAxios from 'vue-axios';
import Vuex from 'vuex';

Vue.config.productionTip = false;

// 用axios 进行 Ajax 请求
Vue.use(VueAxios, axios);

// Vuex进行状态管理
Vue.use(Vuex);

const store = new Vuex.Store({
  state: {
    options: {
      autoplay: false,
      content: 'notice content'
    }
  }
});

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  template: '<App/>',
  components: { App }
});
